import request from '@/utils/request'

/**
 * 筹备--商业--出租情况-卡片基本信息
 * @param  biProjectCode  项目code
 * @param  dataTime  更新日期，接口获取的
 */
const prepareRentCardApi = ({ biProjectCode, dataTime }) => {
	const data = {
		biProjectCode,
		dataTime,
	}
	return request({
		url: `/portal-server/v1/api/prepare/prepareRentCard?biProjectCode=${biProjectCode}&dataTime=${dataTime}`,
		method: 'get',
		data: data
	})
};


/**
 * 筹备--商业--出租情况-卡片表格
 * @param  biProjectCode  项目code
 * @param  dataTime  更新日期，接口获取的
 */
 const prepareRentCardListApi = ({ biProjectCode, dataTime }) => {
	const data = {
		biProjectCode,
		dataTime,
	}
	return request({
		url: `/portal-server/v1/api/prepare/prepareRentCardList?biProjectCode=${biProjectCode}&dataTime=${dataTime}`,
		method: 'get',
		data: data
	})
};

/**
 * 筹备--商业--基准价-卡片基本信息
 * @param  biProjectCode  项目code
 * @param  dataTime  更新日期，接口获取的
 */
 const prepareBaseCardApi = ({ biProjectCode, dataTime }) => {
	const data = {
		biProjectCode,
		dataTime,
	}
	return request({
		url: `/portal-server/v1/api/prepare/prepareBaseCard?biProjectCode=${biProjectCode}&dataTime=${dataTime}`,
		method: 'get',
		data: data
	})
};


/**
 * 筹备--商业--基准价-卡片表格
 * @param  biProjectCode  项目code
 * @param  dataTime  更新日期，接口获取的
 */
 const prepareBaseCardListApi = ({ biProjectCode, dataTime }) => {
	const data = {
		biProjectCode,
		dataTime,
	}
	return request({
		url: `/portal-server/v1/api/prepare/prepareBaseCardList?biProjectCode=${biProjectCode}&dataTime=${dataTime}`,
		method: 'get',
		data: data
	})
};
/**
 * 筹备--商业--二装监控
 * @param  projectCode  项目code
 */
 const secondMonitorCollectCardListApi = (projectCode) => {
	return request({
		url: '/workOrderApp/second/install/monitor/collect?projectKey=' + projectCode,
		method: 'get',
	})
};

export default {
	prepareRentCardApi,
	prepareRentCardListApi,
	prepareBaseCardApi,
	prepareBaseCardListApi,
  secondMonitorCollectCardListApi
}
